import request from '@/utils/request'

/**
 * plc标签信息分页查询
 * @param {查询条件} data
 */
export function pageBasePlcTag(query) {
  return request({
    url: 'BaseManage/BasePlcTag/pageList',
    method: 'get',
    params: query,
  })
}

/**
 * 新增plc标签信息
 * @param data
 */
export function addBasePlcTag(data) {
  return request({
    url: 'BaseManage/BasePlcTag',
    method: 'post',
    data: data,
  })
}
/**
 * 修改plc标签信息
 * @param data
 */
export function updateBasePlcTag(data) {
  return request({
    url: 'BaseManage/BasePlcTag',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取plc标签信息详情
 * @param {Id}
 */
export function getBasePlcTag(id) {
  return request({
    url: 'BaseManage/BasePlcTag/' + id,
    method: 'get'
  })
}

/**
 * 删除plc标签信息
 * @param {主键} pid
 */
export function delBasePlcTag(pid) {
  return request({
    url: 'BaseManage/BasePlcTag/delete',
    method: 'POST',
    data: pid
  })
}
